programming4us
           
 
 
Sharepoint

Examples of SharePoint Administrative Tasks (part 3) - Using Windows PowerShell During the Upgrade Process

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/14/2010 5:11:22 PM

3. Using Windows PowerShell During the Upgrade Process

The following sections provide information about some Windows PowerShell commands you might find useful during an upgrade.

3.1. Preparing for an Upgrade

After installing SharePoint 2010 and before upgrading, you can use the Test-SPContentDatabase cmdlet to check your SharePoint Server 2007 databases for current or potential issues, such as orphan data, missing site definitions, missing features, or missing assemblies. Checking for these issues does not disrupt your SharePoint installation, and this cmdlet can also test the status of SharePoint 2010 databases, which can assist you in maintaining the continued health of your environment. The following example shows the command and its sample output.

Test-SPContentDatabase -name W_intranet -WebApplication http://www.contoso.msft

Category : SiteOrphan
Error           : True
UpgradeBlocking : False
Message : Database [W_intranet] contains a site (Id = [46ad6d70-9a5c-4d
e0-8daa-0f73f2466a6a], Url = [/]) whose id is already associa
ted with a different database (Id = [6987d2d8-6291-4ead-9eb0-
aefe7097a58e], name = [W_Intranet]) in the site map. Consider
deleting one of these sites which have conflicting ids.
Remedy : The orphaned sites could cause upgrade failures. Try detach a
nd reattach the database which contains the orphaned sites. R
estart upgrade if necessary.
Category : SiteOrphan
Error : True
UpgradeBlocking : False
Message : Database [W_intranet] contains a site (Id = [46ad6d70-9a5c-4d
e0-8daa-0f73f2466a6a], Url = [/]) whose url is already used b
y a different site, in database (Id = [6063e77c-991f-4c4b-b3a
c-68cb62e66502], name = [w_Internet]), in the same web applic
ation. Consider deleting one of the sites which have conflict
ing urls.
Remedy : The orphaned sites could cause upgrade failures. Try detach a
nd reattach the database which contains the orphaned sites. R
estart upgrade if necessary.

3.2. Performing Post-Upgrade Tasks

The upgrade process is divided into two components, the content database upgrade and the visual upgrade. By separating these two components, your SharePoint team can decide to upgrade the Microsoft Office SharePoint Server 2007 Web application without users noticing the change, because their sites will maintain the old look and feel. Using the browser, they can preview what their site looks like with the new SharePoint 2010 look and feel and then decide when they permanently want to switch to the visual upgrade. After they make the switch, the browser will not allow them to switch back to the SharePoint Server 2007 look and feel.

The Set-SPWeb cmdlet does not have any parameter to help with this task; you will need to use the properties of the SPWeb object to complete this task. Type the following commands if you want to switch sites back to the old look and feel.

Start-SPAssignment -Global
$web = Get-SPWeb http://teams ;
$web.UIVersion = 3;
$web.UIVersionConfigurationEnabled = $true;
$web.Update();
Stop-SPAssignment


Note:

Previously in this article, you created variables to store values and objects. Variable names are prefixed with the dollar sign, $. In the sample code shown here, you will see $true used. This, together with a number of other keywords that look like variables, is an example of a special variable. A special variable should be treated as a reserved word that you cannot use in your scripts to store values or object. The special variable $true represents the value True, $false represents False, $null$_ also has been used in this article and contains the current pipeline object. It is used in script blocks, filters, and the Where cmdlet. represents null, and


After you run these commands, the website will revert to the SharePoint Server 2007 look and feel. The Site Actions button will be in the upper-right corner, for example, instead of in the upper-left corner. The Site Actions menu will have the Visual Upgrade option available, although the Visual Upgrade option at the site collection level may not be enabled. To enable the Visual Upgrade option at the site collection level, use the following commands.

$site = Get-SPSite http://teams
$site.UIVersionConfigurationEnabled = $true

When updating the properties of the SPSite object, there is no update method; the changes to the SPSite properties take effect immediately. You could type the following line as an alternative to the previous two lines of commands.

(Get-SPSite http://teams).UIVersionConfigurationEnabled = $false

To reset all “team” websites within a site collection back to the SharePoint Server 2007 look and feel, use the following command.

PS C:\Users\zzspfarm> Get-SPsite http://teams |
>> Get-SPWeb -Filter {$_.Template -eq "STS#0}|
>> ForEach-Object {
>> $_.UIVersion =3;
>> $_.UIVersionConfigurationEnabled = $false;
>> $_.Update();
>> }
>><ENTER>


Note:

These commands also can be run on a site or site collection that has not been upgraded—that is, on a site that was created as a version 4 site, thereby making a SharePoint 2010 site look like a SharePoint 2007 site.


Other -----------------
- SharePoint 2010 : Add a Web Part
- SharePoint 2010 : Use the Picture Editing Control in a Page
- SharePoint 2010 : Use Wiki Syntax to Link to Existing Content and Create Pages
- Sharepoint 2010 : Use the Text Editing Control in a Page (part 3) - Add and Edit a Table
- Sharepoint 2010 : Use the Text Editing Control in a Page (part 2) - Add and Edit a Picture
- Sharepoint 2010 : Use the Text Editing Control in a Page (part 1) - Add a Hyperlink
- Working with the SharePoint 2010 Management Shell (part 9) - Performing Basic Administrative Tasks
- Working with the SharePoint 2010 Management Shell (part 8)
- Working with the SharePoint 2010 Management Shell (part 7) - Using Parameters
- Working with the SharePoint 2010 Management Shell (part 6)
- Working with the SharePoint 2010 Management Shell (part 5) - Using Verbs
- Working with the SharePoint 2010 Management Shell (part 4) - Understanding Properties and Methods
- Working with the SharePoint 2010 Management Shell (part 3) - Working with Objects
- Working with the SharePoint 2010 Management Shell (part 2) - Understanding cmdlets
- Working with the SharePoint 2010 Management Shell (part 1)
- SharePoint 2010 : Edit the Contents of a Page
- SharePoint 2010 : Change the Page Layout of a Publishing Page
- SharePoint 2010 : Authoring Pages - Edit the Properties of a Page
- SharePoint 2010 : Authoring Pages - Create a New Page (part 2)
- SharePoint 2010 : Authoring Pages - Create a New Page (part 1)
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us